using System;
using System.Security.Principal;
using Sedna.API.Security;
using Sedna.API.Session;

namespace Sedna.API.Session
{
    public class Session: ISession
    {
        private IToken sessionKey;
        private DateTime timestamp;
        private IPrincipal principal;


        public Session(IPrincipal principal, IToken sessionKey)
        {
            this.sessionKey = sessionKey;
            this.principal = principal;
            timestamp = DateTime.Now;

        }

        public IToken SessionKey
        {
            get { return sessionKey; }
        }

        public IPrincipal Principal
        {
            get { return principal; }
        }

        
        
        public DateTime Timestamp
        {
            get { return timestamp; }
            set { timestamp = value; }
        }
        
        
    }
}

